package com.csun.cmny.provider.service;

import com.csun.cmny.provider.model.domain.NtRevise;
import com.csun.cmny.provider.model.vo.ReviseVo;
import com.csun.cmny.provider.service.hystrix.OmcActivitiFeignHystrix;
import com.csun.cmny.provider.service.hystrix.OmcReviseFeignHystrix;
import com.csun.cmny.security.feign.OAuth2FeignAutoConfiguration;
import com.csun.cmny.util.wrapper.Wrapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-12-13 14:41
 * @Description:
 */
@FeignClient(value = "cmny-provider-omc", configuration = OAuth2FeignAutoConfiguration.class, fallback = OmcReviseFeignHystrix.class)
public interface OmcReviseFeignApi {

    @PostMapping(value = "/api/revise/sync")
    Wrapper<Integer> syncRevise(@RequestBody NtRevise ntRevise);

    @PostMapping(value = "/api/revise/init")
    Wrapper<Integer> initRevise(@RequestBody ReviseVo reviseVo);
}
